<script setup lang="ts">
import useSettingStore from "@/pinia/setting";
const settingStore = useSettingStore();
const { setCollapse } = settingStore;

interface PropType {}

withDefaults(defineProps<PropType>(), {});
</script>

<template>
  <xt-icon
    class="cursor-pointer"
    :size="24"
    :icon="settingStore.collapse ? 'icon-zhankai' : 'icon-shousuo'"
    @click="setCollapse(!settingStore.collapse)"
  />
</template>

<style lang="scss" scoped></style>
